/*
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 *
 * Copyright (c) 2013-2014 sagyf Yang. The Four Group.
 */

$(function () {

    document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
        WeixinJSBridge.call('hideToolbar');
        WeixinJSBridge.invoke('getNetworkType', {},
            function (e) {
                if(e.error_msg == 'fail'){
                    alert('您得网络已断开，无法使用')
                }
            });
    });

});